package com.uade.webservices.logisticaMonitoreo;

public class LogisticaMonitoreoWSProxy implements com.uade.webservices.logisticaMonitoreo.LogisticaMonitoreoWS {
  private String _endpoint = null;
  private com.uade.webservices.logisticaMonitoreo.LogisticaMonitoreoWS logisticaMonitoreoWS = null;
  
  public LogisticaMonitoreoWSProxy() {
    _initLogisticaMonitoreoWSProxy();
  }
  
  public LogisticaMonitoreoWSProxy(String endpoint) {
    _endpoint = endpoint;
    _initLogisticaMonitoreoWSProxy();
  }
  
  private void _initLogisticaMonitoreoWSProxy() {
    try {
      logisticaMonitoreoWS = (new com.uade.webservices.logisticaMonitoreo.LogisticaMonitoreoBeanServiceLocator()).getLogisticaMonitoreoWSPort();
      if (logisticaMonitoreoWS != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)logisticaMonitoreoWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)logisticaMonitoreoWS)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (logisticaMonitoreoWS != null)
      ((javax.xml.rpc.Stub)logisticaMonitoreoWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.uade.webservices.logisticaMonitoreo.LogisticaMonitoreoWS getLogisticaMonitoreoWS() {
    if (logisticaMonitoreoWS == null)
      _initLogisticaMonitoreoWSProxy();
    return logisticaMonitoreoWS;
  }
  
  public java.lang.String informarVenta(java.lang.String arg0) throws java.rmi.RemoteException{
    if (logisticaMonitoreoWS == null)
      _initLogisticaMonitoreoWSProxy();
    return logisticaMonitoreoWS.informarVenta(arg0);
  }
  
  public java.lang.String informarLog(java.lang.String arg0) throws java.rmi.RemoteException{
    if (logisticaMonitoreoWS == null)
      _initLogisticaMonitoreoWSProxy();
    return logisticaMonitoreoWS.informarLog(arg0);
  }
  
  
}